package com.llj.Road_curve_measuring_system.adapter;

import androidx.annotation.NonNull;
import androidx.annotation.Nullable;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.viewholder.BaseViewHolder;
import com.llj.Road_curve_measuring_system.R;
import com.llj.Road_curve_measuring_system.bean.ScreenResult;

import java.util.List;

/**
 * @author ：Dyj
 * @date ：Created in 2022/4/24 21:42
 * @description：历史页适配器
 * @modified By：
 * @version: 1.0
 */
public class ResultAdapter extends BaseQuickAdapter<ScreenResult, BaseViewHolder> {
    public ResultAdapter(int layoutResId, @Nullable List<ScreenResult> data) {
        super(layoutResId, data);
    }

    @Override
    protected void convert(@NonNull BaseViewHolder baseViewHolder, ScreenResult screenResult) {
        baseViewHolder.setText(R.id.his_tx,screenResult.getName());
    }
}
